package com.equity.common;

import java.io.Serializable;

import javax.annotation.PostConstruct;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component("helloBean")
public class HelloBean implements Serializable {

	private static final long serialVersionUID = -5630105175081268620L;
	private static Logger logger = LoggerFactory.getLogger(HelloBean.class);

	private String name = "Sergio";

	@PostConstruct
	public void init() {
		logger.warn("Spring works!");
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	public String goToWellcome() {
		return "";
	}

	public String goToWellcome2() {
		logger.debug("/pages/wellcome.xhtml");
		return "/pages/wellcome.xhtml";
	}

}
